/*
 * XML Type:  EPackage
 * Namespace: http://www.eclipse.org/emf/2002/Ecore
 * Java type: org.eclipse.emf.x2002.ecore.EPackage
 *
 * Automatically generated - do not modify.
 */
package org.eclipse.emf.x2002.ecore;


/**
 * An XML EPackage(@http://www.eclipse.org/emf/2002/Ecore).
 *
 * This is a complex type.
 */
public interface EPackage extends org.eclipse.emf.x2002.ecore.ENamedElement
{
    public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType)
        org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(EPackage.class.getClassLoader(), "schemaorg_apache_xmlbeans.system.sFBDCFB7615E0FAB3CF0394CF3AD1FE99").resolveHandle("epackagee60btype");
    
    /**
     * Gets array of all "eClassifiers" elements
     */
    org.eclipse.emf.x2002.ecore.EClassifier[] getEClassifiersArray();
    
    /**
     * Gets ith "eClassifiers" element
     */
    org.eclipse.emf.x2002.ecore.EClassifier getEClassifiersArray(int i);
    
    /**
     * Returns number of "eClassifiers" element
     */
    int sizeOfEClassifiersArray();
    
    /**
     * Sets array of all "eClassifiers" element
     */
    void setEClassifiersArray(org.eclipse.emf.x2002.ecore.EClassifier[] eClassifiersArray);
    
    /**
     * Sets ith "eClassifiers" element
     */
    void setEClassifiersArray(int i, org.eclipse.emf.x2002.ecore.EClassifier eClassifiers);
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "eClassifiers" element
     */
    org.eclipse.emf.x2002.ecore.EClassifier insertNewEClassifiers(int i);
    
    /**
     * Appends and returns a new empty value (as xml) as the last "eClassifiers" element
     */
    org.eclipse.emf.x2002.ecore.EClassifier addNewEClassifiers();
    
    /**
     * Removes the ith "eClassifiers" element
     */
    void removeEClassifiers(int i);
    
    /**
     * Gets array of all "eSubpackages" elements
     */
    org.eclipse.emf.x2002.ecore.EPackage[] getESubpackagesArray();
    
    /**
     * Gets ith "eSubpackages" element
     */
    org.eclipse.emf.x2002.ecore.EPackage getESubpackagesArray(int i);
    
    /**
     * Returns number of "eSubpackages" element
     */
    int sizeOfESubpackagesArray();
    
    /**
     * Sets array of all "eSubpackages" element
     */
    void setESubpackagesArray(org.eclipse.emf.x2002.ecore.EPackage[] eSubpackagesArray);
    
    /**
     * Sets ith "eSubpackages" element
     */
    void setESubpackagesArray(int i, org.eclipse.emf.x2002.ecore.EPackage eSubpackages);
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "eSubpackages" element
     */
    org.eclipse.emf.x2002.ecore.EPackage insertNewESubpackages(int i);
    
    /**
     * Appends and returns a new empty value (as xml) as the last "eSubpackages" element
     */
    org.eclipse.emf.x2002.ecore.EPackage addNewESubpackages();
    
    /**
     * Removes the ith "eSubpackages" element
     */
    void removeESubpackages(int i);
    
    /**
     * Gets the "nsURI" attribute
     */
    java.lang.String getNsURI();
    
    /**
     * Gets (as xml) the "nsURI" attribute
     */
    org.eclipse.emf.x2002.ecore.EString xgetNsURI();
    
    /**
     * True if has "nsURI" attribute
     */
    boolean isSetNsURI();
    
    /**
     * Sets the "nsURI" attribute
     */
    void setNsURI(java.lang.String nsURI);
    
    /**
     * Sets (as xml) the "nsURI" attribute
     */
    void xsetNsURI(org.eclipse.emf.x2002.ecore.EString nsURI);
    
    /**
     * Unsets the "nsURI" attribute
     */
    void unsetNsURI();
    
    /**
     * Gets the "nsPrefix" attribute
     */
    java.lang.String getNsPrefix();
    
    /**
     * Gets (as xml) the "nsPrefix" attribute
     */
    org.eclipse.emf.x2002.ecore.EString xgetNsPrefix();
    
    /**
     * True if has "nsPrefix" attribute
     */
    boolean isSetNsPrefix();
    
    /**
     * Sets the "nsPrefix" attribute
     */
    void setNsPrefix(java.lang.String nsPrefix);
    
    /**
     * Sets (as xml) the "nsPrefix" attribute
     */
    void xsetNsPrefix(org.eclipse.emf.x2002.ecore.EString nsPrefix);
    
    /**
     * Unsets the "nsPrefix" attribute
     */
    void unsetNsPrefix();
    
    /**
     * Gets the "eFactoryInstance" attribute
     */
    java.lang.String getEFactoryInstance();
    
    /**
     * Gets (as xml) the "eFactoryInstance" attribute
     */
    org.apache.xmlbeans.XmlIDREF xgetEFactoryInstance();
    
    /**
     * True if has "eFactoryInstance" attribute
     */
    boolean isSetEFactoryInstance();
    
    /**
     * Sets the "eFactoryInstance" attribute
     */
    void setEFactoryInstance(java.lang.String eFactoryInstance);
    
    /**
     * Sets (as xml) the "eFactoryInstance" attribute
     */
    void xsetEFactoryInstance(org.apache.xmlbeans.XmlIDREF eFactoryInstance);
    
    /**
     * Unsets the "eFactoryInstance" attribute
     */
    void unsetEFactoryInstance();
    
    /**
     * A factory class with static methods for creating instances
     * of this type.
     */
    
    public static final class Factory
    {
        public static org.eclipse.emf.x2002.ecore.EPackage newInstance() {
          return (org.eclipse.emf.x2002.ecore.EPackage) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); }
        
        public static org.eclipse.emf.x2002.ecore.EPackage newInstance(org.apache.xmlbeans.XmlOptions options) {
          return (org.eclipse.emf.x2002.ecore.EPackage) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, options ); }
        
        /** @param xmlAsString the string value to parse */
        public static org.eclipse.emf.x2002.ecore.EPackage parse(java.lang.String xmlAsString) throws org.apache.xmlbeans.XmlException {
          return (org.eclipse.emf.x2002.ecore.EPackage) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, null ); }
        
        public static org.eclipse.emf.x2002.ecore.EPackage parse(java.lang.String xmlAsString, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
          return (org.eclipse.emf.x2002.ecore.EPackage) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, options ); }
        
        /** @param file the file from which to load an xml document */
        public static org.eclipse.emf.x2002.ecore.EPackage parse(java.io.File file) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (org.eclipse.emf.x2002.ecore.EPackage) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, null ); }
        
        public static org.eclipse.emf.x2002.ecore.EPackage parse(java.io.File file, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (org.eclipse.emf.x2002.ecore.EPackage) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, options ); }
        
        public static org.eclipse.emf.x2002.ecore.EPackage parse(java.net.URL u) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (org.eclipse.emf.x2002.ecore.EPackage) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, null ); }
        
        public static org.eclipse.emf.x2002.ecore.EPackage parse(java.net.URL u, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (org.eclipse.emf.x2002.ecore.EPackage) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, options ); }
        
        public static org.eclipse.emf.x2002.ecore.EPackage parse(java.io.InputStream is) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (org.eclipse.emf.x2002.ecore.EPackage) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, null ); }
        
        public static org.eclipse.emf.x2002.ecore.EPackage parse(java.io.InputStream is, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (org.eclipse.emf.x2002.ecore.EPackage) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, options ); }
        
        public static org.eclipse.emf.x2002.ecore.EPackage parse(java.io.Reader r) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (org.eclipse.emf.x2002.ecore.EPackage) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, null ); }
        
        public static org.eclipse.emf.x2002.ecore.EPackage parse(java.io.Reader r, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (org.eclipse.emf.x2002.ecore.EPackage) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, options ); }
        
        public static org.eclipse.emf.x2002.ecore.EPackage parse(javax.xml.stream.XMLStreamReader sr) throws org.apache.xmlbeans.XmlException {
          return (org.eclipse.emf.x2002.ecore.EPackage) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, null ); }
        
        public static org.eclipse.emf.x2002.ecore.EPackage parse(javax.xml.stream.XMLStreamReader sr, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
          return (org.eclipse.emf.x2002.ecore.EPackage) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, options ); }
        
        public static org.eclipse.emf.x2002.ecore.EPackage parse(org.w3c.dom.Node node) throws org.apache.xmlbeans.XmlException {
          return (org.eclipse.emf.x2002.ecore.EPackage) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, null ); }
        
        public static org.eclipse.emf.x2002.ecore.EPackage parse(org.w3c.dom.Node node, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
          return (org.eclipse.emf.x2002.ecore.EPackage) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, options ); }
        
        /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
        public static org.eclipse.emf.x2002.ecore.EPackage parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return (org.eclipse.emf.x2002.ecore.EPackage) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, null ); }
        
        /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
        public static org.eclipse.emf.x2002.ecore.EPackage parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return (org.eclipse.emf.x2002.ecore.EPackage) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, options ); }
        
        /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
        public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, null ); }
        
        /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
        public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, options ); }
        
        private Factory() { } // No instance of this class allowed
    }
}
